Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rush] Refactor rush-sdk to expose a loader API. #3212

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iclanton
Copy link
Member

@iclanton iclanton commented Feb 6, 2022

Summary

Implements the design in #3209

How it was tested

Moved the test to its own project and verified that it still works.


installAndRunRushStderrContent = installAndRuhRushProcess.stderr;
if (installAndRuhRushProcess.status !== 0) {
throw new Error(`The ${RUSH_LIB_NAME} package failed to install`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error gets immediately discarded by the catch below.

Co-authored-by: David Michon <[email protected]>
installAndRunRushJSPath,
'--help'
]);
terminal.write(installAndRuhRushProcess.stdout);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: rush --help lists all rush commands information, but the idea is just trigger the install-run logic behind. I can see this stdout would be pretty annoying, so it's intentionaly removed in original implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

3 participants